import {defineStore} from "pinia";

export const useStore = defineStore('main',{
    state:()=>({
        counter:0
    }),
    getters:{
        doubleCounter(){
            return this.counter*2
        }
    },
    actions:{
        increment(){
            this.counter++
        }
    }
})